<?php 
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use yii\widgets\InputWidget;
?>
<?php 
$form = ActiveForm::begin([
//'enableClientScript'=>true,
'options'=>['enctype'=>'multipart/form-data','class'=>'form-horizontal'],
'fieldConfig'=>['template'=>'{label}<div class="col-sm-9">{input}{hint}<span class="help-inline col-xs-12 col-sm-7">

{error}</span></div>',
'labelOptions'=>['class' =>'col-sm-3 control-label no-padding-right'],
'inputOptions'=>['class' =>'col-xs-10 col-sm-4'],
'errorOptions'=>['class' =>'help-block middle']
]
])
/*@var $form yii\widgets\ActiveForm */
?>

<?= $form->field($unitinfomodel, 'Name') ?>
<?= $form->field($unitinfomodel, 'Status')->radioList(['0'=>'不应用','1'=>'应用']) ?>
<?= $form->field($unitinfomodel, 'Remark') ?>
<?= html::input('hidden','action','unitinfo') ?>
<div class="form-group has-warning">
    <label for="inputWarning" class="col-xs-12 col-sm-5 control-label no-padding-right"></label>
    <div class="col-xs-12 col-sm-5">															
     <?= Html::submitButton('添加',['class'=>'btn btn-primary']); ?>
     &nbsp;&nbsp;
     <?= Html::resetButton('重置',['class'=>'btn btn-danger']); ?>
    </div>
</div>

<?php 
ActiveForm::end()
?>